<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $daohang = M("daohang"); // 实例化daohang对象
        // 查找status值为1的用户数据 以创建时间排序 返回10条数据
        $list = $daohang->limit(10)->select();
        $this->assign('list',$list);
        $this->display();
    }
}